{include file="public/header"}
<div class="page-content">
    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
        <div class="widget am-cf" style=" height: 500px;">
            <a href="{:url('Users/listPage')}">
                <i title="返回" class="iconfont"
                   style="font-size:2.5rem;float: left">&#xe697;</i></a>
            <form class="stdform" action="{:url('users/mod')}" method="post" enctype="multipart/form-data">
                <div class="widget-body">
                    <fieldset>
                        <div class="widget-head am-cf">
                            <div class="widget-title am-cf">修改用户信息</div>
                        </div>
                        <input type="hidden" name="id" id="id"  value="{$data.id}"/>
                        <div class="layui-form-item">
                            <label class="am-u-sm-3 am-u-lg-2 layui-form-label">用户名 </label>
                            <div class="am-u-sm-9">
                                <input type="text" name="username" class="layui-input"  value="{$data.username}"/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="am-u-sm-3 am-u-lg-2 layui-form-label">密码 </label>
                            <div class="am-u-sm-9">
                                <input type="password" name="userpwd" class="layui-input" /></span>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="am-u-sm-3 am-u-lg-2 layui-form-label">email</label>
                            <div class="am-u-sm-9">
                                <input type="text" name="email" class="layui-input"  value="{$data.email}"/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="am-u-sm-3 am-u-lg-2 layui-form-label">地址 </label>
                            <div class="am-u-sm-9">
                                <input type="text" name="address" class="layui-input"   value="{$data.address}"/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="am-u-sm-3 am-u-lg-2 layui-form-label">联系方式</label>
                            <div class="am-u-sm-9">
                                <input type="text" name="phone" class="layui-input"   value="{$data.phone}"/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="am-u-sm-3 am-u-lg-2 layui-form-label">是否允许订餐</label>
                            <div class="am-u-sm-9 ">
                                <select name="post" id="selection2" class="layui-input" style="width: 110px">
                                    <option value="1" {$data['post']==1?'selected':''}>允许订餐</option>
                                    <option value="2" {$data['post']!=1?'selected':''}>不允许订餐</option>
                                </select>
                            </div>
                        </div>
                        <div class="am-form-group stdformbutton">
                            <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                <button class="am-btn am-btn-primary">修改</button>
                            </div>
                        </div>
                    </fieldset>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>